<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>解构和函数综合使用</title>
    <script>
        let person = {
            name: "jack",
            heihei:{
                yy1:"hello1",
                yy2:"hello2",
                yy3:"hello3",
                yy4:"hello4",
            }
        }


        function say1(person) {
            console.log(person.heihei.yy1);
            console.log(person.heihei.yy2);
            console.log(person.heihei.yy3);
            console.log(person.heihei.yy4);
        }

        say1(person);


        function say2({heihei}) {
            console.log(heihei.yy1);
            console.log(heihei.yy2);
            console.log(heihei.yy3);
            console.log(heihei.yy4);
        }

        say2(person);

        console.log("==============")
        let say3 = ({heihei})=> console.log(heihei.yy1)

        say3(person)
    </script>
</head>
<body>

</body>
</html>